<?php
/**
 * [PHPFOX_HEADER]
 */

defined('PHPFOX') or exit('NO DICE!');

/**
 * 
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox_Component
 * @version 		$Id: category.class.php 1126 2009-10-03 12:05:33Z Miguel_Espinoza $
 */
class Video_Component_Block_Profile_Video extends Phpfox_Component
{
	/**
	 * Class process method wnich is used to execute this component.
	 */
	public function process()
	{
            $aUser = $this->getParam("aUser");
		//Phpfox::getComponent("video.index",null,"controller");
            $aVideos = Phpfox::getService("video")->getUserProfileVideos($aUser["user_id"],9);
            $this->template()->assign(array(
                'sHeader' => 'Videos',
               "aVideos" => $aVideos,
                'bTab' => true
            ));
            return "block";
	}
	
	/**
	 * Garbage collector. Is executed after this class has completed
	 * its job and the template has also been displayed.
	 */
	public function clean()
	{
		(($sPlugin = Phpfox_Plugin::get('video.component_block_category_clean')) ? eval($sPlugin) : false);
	}
}

?>